package com.xintoucloud.pbs.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

@Entity@Table(name="p_organization_state")
public class OrganizationState implements Serializable{
    @Id@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int ostid;
	private String ostate;
	
	@OneToMany(mappedBy="ost")
	private Set<Organization> organizations;
	
	
	public Set<Organization> getOrganizations() {
		return organizations;
	}
	public void setOrganizations(Set<Organization> organizations) {
		this.organizations = organizations;
	}
	public int getOstid() {
		return ostid;
	}
	public void setOstid(int ostid) {
		this.ostid = ostid;
	}
	public String getOstate() {
		return ostate;
	}
	public void setOstate(String ostate) {
		this.ostate = ostate;
	}
	
}
